package yarr

func Map[I any, R any](list []I, fc func(I) R) []R {
	var result []R
	for _, item := range list {
		result = append(result, fc(item))
	}
	return result
}
